import request from '@/utils/request'

// 查询操作流程列表
export function listOperateFlow(query) {
  return request({
    url: '/order/operateFlow/list',
    method: 'get',
    params: query
  })
}

// 查询操作流程详细
export function getOperateFlow(id) {
  return request({
    url: '/order/operateFlow/' + id,
    method: 'get'
  })
}

// 新增操作流程
export function addOperateFlow(data) {
  return request({
    url: '/order/operateFlow',
    method: 'post',
    data: data
  })
}

// 修改操作流程
export function updateOperateFlow(data) {
  return request({
    url: '/order/operateFlow',
    method: 'put',
    data: data
  })
}

// 删除操作流程
export function delOperateFlow(id) {
  return request({
    url: '/order/operateFlow/' + id,
    method: 'delete'
  })
}
